<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2019/8/14
 * Time: 14:37
 */
namespace App\Lib;
use App\Models\User;

class Helper
{
    /**
     * 检测手机号
     * @param $mobile
     * @return bool
     */
    public static function checkMobile($mobile)
    {
        if (preg_match('/^1[3456789]{1}\d{9}$/', $mobile)) {
            return true;
        } else {
            return false;
        }
    }
}